package org.springblade.modules.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.MaintainMalfunctionWork;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

/**
 *  梯联网-新增维修DTO
 *  @Author ysq
 *  @Date 2023/07/06
 */
@Data
public class TlwMalfunctionPlanSaveDTO implements Serializable {

	@NotBlank(message = "梯联网设备id不能为空")
	@ApiModelProperty(value = "梯联网设备id")
	private String deviceId;

	@NotBlank(message = "梯联网关联id不能为空")
	@ApiModelProperty(value = "梯联网关联id")
	private String tlwJoinId;

	@NotBlank(message = "报警人姓名不能为空")
	@ApiModelProperty(value = "报警人姓名")
	private String name;

	@NotBlank(message = "联系方式不能为空")
	@ApiModelProperty(value = "联系方式")
	private String phone;

	@NotBlank(message = "故障现象不能为空")
	@ApiModelProperty(value = "故障现象")
	private String problemOtherDesc;

	@ApiModelProperty(value = "故障图片及视频")
	private List<HashMap<String,String>> mfImgUrl;

	@ApiModelProperty(value = "故障信息")
	private List<MaintainMalfunctionWork> works;

	@ApiModelProperty(value = "紧急程度 1:非常紧急2:紧急3:普通4:较低'")
	private Integer emerProcType;

	@ApiModelProperty(value = "工单类型 1-内部整改 2-客户报障")
	private Integer workOrderType;

}
